<!--
 * @Descripttion: 
 * @version: 
 * @@Company: DCIT-SH
 * @Author: 王富银
 * @Date: 2024-08-08 14:02:14
 * @LastEditors: Sunny Chen
 * @LastEditTime: 2024-08-21 17:59:32
-->


<template>
  <VScaleScreen :width="width" :height="height">
    <HomeView></HomeView>
    <RouterView></RouterView>
  </VScaleScreen>
</template>

<script setup>
import VScaleScreen from "v-scale-screen";
import {ref,onMounted,onUnmounted} from 'vue';
import HomeView from "./views/HomeMapView.vue";
import Login from "./views/Login.vue";
import { RouterView } from "vue-router";
import {usePostStore} from '@/stores'
const postStore = usePostStore();
const {updateCurrentLoginName,updateCurrentLoginType} = postStore
const width = ref(0);
const height = ref(0);
const token = ref('')
onMounted(() => {
  width.value = window.innerWidth;
  height.value = window.innerHeight;
});
onUnmounted(()=>{
  updateCurrentLoginName('');
  updateCurrentLoginType(0);
})
//隐层登录界面
const hideLoginView = ()=>{
  console.log(123);
  token.value = sessionStorage.getItem('token');
}
</script>

<style scoped></style>
